package com.sfac.springboot.modules.test.service;

import com.sfac.springboot.modules.common.vo.Result;
import com.sfac.springboot.modules.common.vo.Search;
import com.sfac.springboot.modules.test.entity.Student;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * StudentService
 */
public interface StudentService {

	Result<Student> insertStudent(Student student);

	Result<Student> updateStudent(Student student);

	Result<Object> deleteStudentById(int id);

	Student getStudentById(int id);

	Page getStudentsBySearch(Search search);

	List<Student> getStudentsByStudentName(String studentName);
}
